package com.gopay.cashier.common.exception;

/**
 * 业务异常类。
 * 
 * 
 * @author zhanglei
 * @version 1.0 2012-8-10
 */
public class BizException extends CommonException {
    private static final long serialVersionUID = -7305175722803862096L;
    protected String errCode = "";
    protected String message = null;

    public BizException(String errCode) {
        super(errCode);
        this.errCode = errCode;
    }

    public BizException(String errCode, Exception exception) {
        super("no errorMsg", exception);
        this.errCode = errCode;
    }

    public BizException(String errCode, String message) {
        super(message);
        this.errCode = errCode;
        this.message = message;
    }

    public BizException(String errCode, String message, Exception exception) {
        super(message, exception);
        this.errCode = errCode;
        this.message = message;
    }

    public String getErrCode() {
        return errCode;
    }

    public void setErrCode(String errCode) {
        this.errCode = errCode;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

}
